import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public class eg8_11 {
    public static void main(String[] args) {
        //TODO code application logic here
        HashMap<Integer,String>hashMap1 =new HashMap<Integer,String>();
        hashMap1.put(97,"abc79");
        hashMap1.put(123,"abc123");
        hashMap1.put(22,"abc22");
        hashMap1.put(4,"abc44");
        hashMap1.put(69,"abc69");
        hashMap1.remove(69);
        hashMap1.put(100,"xyz100");
        System.out.println();
    }
    public static void show(Collection collection){
        Iterator it = collection.iterator();
        while (it.hasNext()){
            System.out.println(it.next()+"");
        }
        System.out.println();
    }
    public static void showMap(Map map){
        Iterator it = map.entrySet().iterator();
        while (it.hasNext()){
            Map.Entry  entry=(Map.Entry) it.next();
            System.out.println("Key is"+entry.getKey()+",Vlaue is"+entry.getValue()+"");
        }
    }
}
